﻿using CookComputing.XmlRpc;
public interface IMetaJogger
{
    [XmlRpcMethod("blogger.getUsersBlogs")]
    XmlRpcStruct[] getUsersBlogs(string appKey, string username, string password);
    
    [XmlRpcMethod("metaWeblog.getRecentPosts")]
    XmlRpcStruct[] getRecentPosts(string blogid, string username, string password, int numberOfPosts);
    
    [XmlRpcMethod("metaWeblog.getPost")]
    XmlRpcStruct getPost(string postid, string username, string password);
    
    [XmlRpcMethod("metaWeblog.newPost")]
    string newPost(string blogid, string username, string password, XmlRpcStruct rpcstruct, bool publish);
    
    [XmlRpcMethod("metaWeblog.getCategories")]
    XmlRpcStruct[] getCategories(string blogid, string username, string password);
    
    [XmlRpcMethod("blogger.deletePost")]
    bool deletePost(string appKey, string postid, string username, string password, bool publish);
    
    [XmlRpcMethod("metaWeblog.newMediaObject")]
    XmlRpcStruct newMediaObject(string blogid, string username, string password, XmlRpcStruct rpcstruct);

    [XmlRpcMethod("metaWeblog.editPost")]
    bool editPost(string postid, string username, string password, XmlRpcStruct rpcstruct, bool publish);

    [XmlRpcMethod("blogger.getUserInfo")]
    XmlRpcStruct getUserInfo(string key, string username, string password);
}
